const files = import.meta.glob(['./**/*.(webp|png|jpg|png|gif|svg|mp4)'], { eager: true });
const ResMap: any = {};
Object.keys(files).forEach((path) => {
    // const fileName = /([^/^.]+)(\..*)/gi.exec(path)?.[1] ?? '';
    const key = path.replace('./', '').replaceAll('/', '_');
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    // console.info("files[path]['default']", files[path]['default']);
    // console.info('xx', files[path]['default'].replace('/_nuxt/assets', ''));
    ResMap[key] = files[path]['default'].replace('/_nuxt/assets', '');
});

export default ResMap;
